﻿@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>


 <form action="@Url.Action("FitrarAlumnos", "Curso")" method="post">
        <label>
            <p><u>Filtro de curso:</u> </p>
            <select name="curso">
                @foreach (var curso in Model.Keys)
                {
                    <option value="@curso">@curso</option>
                }
            </select>
            <input type="submit" value="Filtrar" />
        </label>
    </form>

<br />
<br />




<table>
    <thead>
        <tr>
            <th>Nombre</th>
            <th>Apellido</th>
            <th>DNI</th>
            <th>Nota</th>
            <th>Curso</th>
        </tr>
    </thead>
    <tbody>
        <tr>

        @foreach (var alumnos in Model.Values)
        {
            foreach (var alumno in alumnos)
            {
            
                <td>@alumno.Nombre</td>
                <td>@alumno.Apellido</td>
                <td>@alumno.Dni</td>
                <td>@alumno.Nota</td>
                <td>@alumno.Curso</td>
            }
            
        }
        </tr>
    </tbody>
    <tfoot>
        <tr>
            <th colspan="3">Total: </th>
            <th></th>
        </tr>
    </tfoot>

</table>



        

